<ion-view view-title="任务" >
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">

    </ion-refresher>

      <div class="list card" href="#">
        <div class="item button-bar" >
          <label class="item item-input">
            <i class="icon ion-search placeholder-icon"></i>
            <input class="" style="width: 70%;" type="tel" ng-model="orderid" placeholder="输入至少5位连续订单号">
          </label>
            <button class="button button-outline button-positive" ng-click="searchTask(orderid)">
              <i class="icon ion-search "></i>
            </button>
          <!--<a class="button button-outline button-positive" ng-click="searchTask(orderid)">搜索</a>-->
        </div>

        <div class="" >
          <div class="row ">
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="barscan()">
                <i class="icon ion-ios-camera-outline "></i>
                <b>扫码</b>
              </button>
            </div>
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="inExpress()">
                <span class="yuanxiaonumber" ng-bind="taskHome.inExpress" ng-show="taskHome.inExpress!=0"></span>
                <i class="icon ion-android-walk "></i>
                <b>在派送</b>
              </button>
            </div>
          </div>
        </div>
        <div class="">
          <div class="row ">
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="backGoods()">
                <span class="yuanxiaonumber" ng-bind="taskHome.backGoods" ng-show="taskHome.backGoods!=0"></span>
                <i class="icon ion-arrow-return-right "></i>
                <b>退货</b>
              </button>
            </div>
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="exchangeGoods()">
                <span class="yuanxiaonumber" ng-bind="taskHome.changeGoods" ng-show="taskHome.changeGoods!=0"></span>
                <i class="icon ion-arrow-swap "></i>
                <b>换货</b>
              </button>
            </div>
          </div>
        </div>
        <div class="">
          <div class="row ">
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="hasFinished()">
                <span class="yuanxiaonumber" ng-bind="taskHome.finishExpress" ng-show="taskHome.finishExpress!=0"></span>
                <i class="icon ion-ios-checkmark"></i>
                <b>已完成</b>
              </button>
            </div>
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="booktime()">
                <span class="yuanxiaonumber" ng-bind="taskHome.bookTime" ng-show="taskHome.bookTime!=0"></span>
                <i class="icon ion-ios-time "></i>
                <b>预约</b>
              </button>
            </div>
          </div>
        </div>

        <div class="">
          <div class="row ">
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="reject()">
                <span class="yuanxiaonumber" ng-bind="taskHome.reject" ng-show="taskHome.reject!=0"></span>
                <i class="icon ion-sad-outline"></i>
                <b>拒收</b>
              </button>
            </div>
            <div class="col">
              <button class="button button-outline button-large button-positive button-block" ng-click="waittakelist()">
                <span class="yuanxiaonumber" ng-bind="wait.waittake" ng-show="wait.waittake!=0"></span>
                <b>待领取任务</b>
              </button>
            </div>
          </div>
        </div>
      </div>

    <!--<div ng-if="(allMission == 0)" class="card">
      <div class="item item-text-wrap">
        空空如野~~~
      </div>
    </div>-->
  </ion-content>
</ion-view>
